toolpalette: Always show text horizontally
authorJohannes Schmid <jhs@gnome.org>
Wed, 11 Nov 2009 08:27:00 +0000 (09:27 +0100)
committerJohannes Schmid <jhs@gnome.org>
Wed, 11 Nov 2009 08:27:00 +0000 (09:27 +0100)
gtk/gtktoolitemgroup.c

index aa7362bc2b3596d808a887338637faa877b50711..073228b6d4226d9ad7a0b87f4ac7d9bcad95fc32 100644 (file)
@@ -168,17 +168,6 @@ gtk_tool_item_group_get_text_alignment (GtkToolShell *shell)
 static GtkOrientation
 gtk_tool_item_group_get_text_orientation (GtkToolShell *shell)
 {
-  GtkWidget *parent = gtk_widget_get_parent (GTK_WIDGET (shell));
-
-  if (GTK_IS_TOOL_PALETTE (parent))
-    {
-      GtkOrientation orientation = gtk_orientable_get_orientation (GTK_ORIENTABLE (parent));
-      if (GTK_ORIENTATION_HORIZONTAL == orientation &&
-          (GTK_TOOLBAR_TEXT == gtk_tool_item_group_get_style (shell)/* ||
-           GTK_TOOLBAR_BOTH_HORIZ == gtk_tool_item_group_get_style (shell)*/))
-        return GTK_ORIENTATION_VERTICAL;
-    }
-
   return GTK_ORIENTATION_HORIZONTAL;
 }